home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 1927 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  877 b 

  1. Path: news.fsu.edu!xi!colvin
  2. From: colvin@xi.cs.fsu.edu (Joshua Colvin)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: If statements, HELP!!
  5. Date: 14 Jan 1996 07:07:57 GMT
  6. Organization: FSU Computer Science Department
  7. Message-ID: <4daa4d$1pb@news.fsu.edu>
  8. References: <956_9601132330@medtechnet.com>
  9. NNTP-Posting-Host: xi.cs.fsu.edu
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12.  
  13. Try this. If you want ALL the comands under the else to be executed when
  14.  the first test fails this should work; if you don't then just take out
  15.  the second pair of braces.
  16.  
  17. {
  18.    if ((SysopPercent > UserPercents) && (SysTime < LockTIme))
  19.       TDDisplayFile("LOCK.ANS");
  20.    else
  21.       {
  22.       TBDoors_Tmp.Open();
  23.       TBDoors_Tmp.Read();
  24.       TBDoors_Tmp.WhereTheDoorWasCalledFrom(5);
  25.       TBDoors_Tmp.Write();
  26.       TBDoors_Tmp.Close();
  27.       }
  28. }
  29.  
  30. Hope that is what you wanted.
  31. Joshua Colvin
  32. colvin@cs.fsu.edu
  33.